package com.play.ballen.data;

import android.text.TextUtils;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;
import java.util.List;

public class UserBean implements Serializable {
    // {"code":20000,"data":{"id":48,"phone":"18212341234",
    // "info":{"nickname":"12341234","birthday":"0001-01-01T00:00:00Z","height":-1,"weight":-1,"im":-1,"sign":"","shape":-1,"gender":-1,"other":-1,"age":2022,"avatar_url":"http://cdn1.jiyujiaoyou.cn/2cb48720-70fe-417e-7d5b-3852130176d2.png"},
    // "like":{"im":-1,"age_min":-1,"age_max":-1,"height_min":-1,"height_max":-1,"weight_min":-1,"weight_max":-1,"shape":-1,"gender":-1,"other":-1},"tags":[],"more_info":{"city":-1,"emotional":-1,"objective":-1,"star_sign":-1,"blood_type":-1,"education":-1,"job":-1,"income":-1},"bg_image":""},"msg":"ok"}
    public int id;
    public String hx_user_name;
    public String phone;
    public Info info;
    public Like like;
    public List<String> tags;
    public MoreInfo more_info;
    public String bg_image;

    public boolean needInfo(){
        return info==null|| TextUtils.isEmpty(info.avatar_url)||TextUtils.isEmpty(info.nickname);
    }




    public class Info implements Serializable {

        public String nickname;
        public String birthday;
        public int height;
        public int weight;
        public int im;
        public String sign;
        public int shape;
        public int gender;
        public int other;
        public int age;
        public String avatar_url;
        UserBean  userInfo= JSON.parseObject("",UserBean.class);
    }
    public class Like implements Serializable{

        public int im;
        public int age_min;
        public int age_max;
        public int height_min;
        public int height_max;
        public int weight_min;
        public int weight_max;
        public int shape;
        public int gender;
        public int other;
    }

    public class MoreInfo implements Serializable{

        public int city;
        public int emotional;
        public int objective;
        public int star_sign;
        public int blood_type;
        public int education;
        public int job;
        public int income;
        
    }
}
